<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎页</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/stylesheets/base.css">
    <script src="/layui/layui.js"></script>
    <script src="/javascripts/jquery.js"></script>
</head>
<body>
    <h3 style="text-align: center;">欢迎：<span id="role"></span></h3>
</body>
<script>
    $(function () {
        const loginInfo = top.loginInfo;
        if(loginInfo.role === 1){
            $("#role").text("管理员 "+loginInfo.nickname)
        }else if(loginInfo.role === 2){
            $("#role").text("负责人 "+loginInfo.nickname)
        }else{
            $("#role").text("员工 "+loginInfo.nickname)
        }
    })
</script>
</html>
